package com.thoughtworks;

public class Books implements Rental{
    public String name;
    public String authorName;
    public int yearOfPublication;

    Books()
    {
        name =null;
        authorName=null;
        yearOfPublication=0;
    }


    public Books(String name, String authorName, int yearOfPublication)
    {
        this.name = name;
        this.authorName=authorName;
        this.yearOfPublication=yearOfPublication;
    }

    public String getName()
    {
        return name;
    }

    public void getDetail()
    {
        System.out.format("%-50s%-50s%-50d\n", name, authorName, yearOfPublication);

    }

}
